package com.dong.service.impl;

import com.dong.dao.Video1Mapper;
import com.dong.entitys.Video1;
import com.dong.service.Video1Service;
import com.dong.tools.DBTools;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class Video1ServiceImpl implements Video1Service {
    @Override
    public List<Video1> selectAllVideoType() {
        SqlSession session = DBTools.getSession();
        Video1Mapper mapper = session.getMapper(Video1Mapper.class);
        List<Video1> video1s = mapper.selectAllVideoType();
        session.commit();
        session.close();
        return video1s;
    }
}
